package com.alibaba.config;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @Author: zhuangzhiwen
 * @Date: 2021/8/18
 */

public class AopAdvice {

    public String before() {
        System.out.println("前置增强");
        return "11";
    }

    public String after() {
        System.out.println("最终增强");
        return "11";
    }


    public String afterReturnning() {
        System.out.println("后置增强");
        return "11";
    }

    public String exceptionAop() {
        System.out.println("异常增强");
        return "11";
    }

    public String around() {
        System.out.println("环绕增强");
        return "11";
    }



}
